package org.jeecg.trace.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.trace.dto.MesMaterialSetDTO;
import org.jeecg.trace.entity.MesMaterialSet;
import org.jeecg.common.api.vo.Result;

import java.util.List;
import java.util.Map;

/**
 * @Description: 物料工件关联表
 * @Author: shaolong
 * @Date:   2022-10-26
 * @Version: V1.0
 */
public interface IMesMaterialSetService extends IService<MesMaterialSet> {

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId
   * @return List<MesMaterialSet>
   */
  public List<MesMaterialSet> selectByMainId(String mainId);

    /**
     * 编辑方法
     *
     * @param qisMatdetailCfg
     */
    Result<String> edit(MesMaterialSet mesMaterialSet);

    IPage<MesMaterialSetDTO> listMesMaterialSetProduct(Page<MesMaterialSetDTO> page, Map<String, String> param);
}
